<?php
$spotlight = array ('user1','user2','user3','user4','user5');
$botsl = $this->calSpotlight ($spotlight,100, 30, 'right');
$top = $this->countModules('top');
$headline = $this->countModules('newsticker');

if( $botsl || $top || $headline ) :
?>

<!-- TOP SPOTLIGHT -->
<div id="ja-topsl" class="wrap">
<div class="main clearfix">
	
	<div class="ja-rs1-top"><div class="ja-rs1-tl">&nbsp;</div><div class="ja-rs1-tr">&nbsp;</div></div>
	
	<div class="ja-rs1-mid"><div class="ja-rs1-ml"><div class="ja-rs1-mr clearfix">
	
	<?php if ($top) : ?>
		<div id="ja-top" class="clearfix">
			<jdoc:include type="modules" name="top" style="JAxhtml" />
		</div>
	<?php endif; ?>
	
	<?php if ($headline) : ?>
		<div id="ja-newsticker" class="clearfix">
			<jdoc:include type="modules" name="newsticker" style="raw" />
		</div>
	<?php endif; ?>
	
	<?php if( $this->countModules('user1') ): ?>
	<div class="ja-box column ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">
		<jdoc:include type="modules" name="user1" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user2') ): ?>
	<div class="ja-box column ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">
		<jdoc:include type="modules" name="user2" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user3') ): ?>
	<div class="ja-box column ja-box<?php echo $botsl['user3']['class']; ?>" style="width: <?php echo $botsl['user3']['width']; ?>;">
		<jdoc:include type="modules" name="user3" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user4') ): ?>
	<div class="ja-box column ja-box<?php echo $botsl['user4']['class']; ?>" style="width: <?php echo $botsl['user4']['width']; ?>;">
		<jdoc:include type="modules" name="user4" style="JAxhtml" />
	</div>
	<?php endif; ?>

	<?php if( $this->countModules('user5') ): ?>
	<div class="ja-box column ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
		<jdoc:include type="modules" name="user5" style="JAxhtml" />
	</div>
	<?php endif; ?>
	
	</div></div></div>
	
	<div class="ja-rs1-bot"><div class="ja-rs1-bl">&nbsp;</div><div class="ja-rs1-br">&nbsp;</div></div>

</div>
</div>

<!-- //TOP SPOTLIGHT -->
<?php endif; ?>